home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: undergrad.math.uwaterloo.ca!clgonsal
- From: clgonsal@undergrad.math.uwaterloo.ca (Carl Laurence Gonsalves)
- Subject: Re: Generic classes and inheritance
- Sender: news@undergrad.math.uwaterloo.ca (news spool owner)
- Message-ID: <Dp6wJ6.oF9@undergrad.math.uwaterloo.ca>
- Date: Mon, 1 Apr 1996 15:33:06 GMT
- References: <3157368b.0@news.sisna.com>
- Nntp-Posting-Host: lhopital.uwaterloo.ca
- Organization: University of Waterloo
-
- In article <3157368b.0@news.sisna.com>,
- Josh Gustafson <jgustafs@sisna.com> wrote:
- >Can a generic class be a base class for another generic class? If so, what
- >does the definition for the derived class look like?
-
- Something like:
-
- template < class T >
- class Derived : public Base< T >{
- // blah blah...
- };
-
- --
- Carl Laurence Gonsalves - clgonsal@undergrad.math.uwaterloo.ca
- Computer Science, University of Waterloo
- http://www.undergrad.math.uwaterloo.ca/~clgonsal/
- http://www.csclub.uwaterloo.ca/~clgonsal/
-